<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="func" uri="http://www.zz.com/tag" %>
<%@ tag pageEncoding="UTF-8" %>
<%@ attribute name="required" rtexprvalue="true" description="是否必填" %>
<%@ attribute name="name" rtexprvalue="true" description="名称" %>
<%@ attribute name="property" required="false" rtexprvalue="true" description="name属性" %>
<%@ attribute name="value" required="false" rtexprvalue="true" description="value属性值" %>
<%@ attribute name="readOnly" required="false" rtexprvalue="true" description="是否只读：" %>
<%@ attribute name="disabled" required="false" rtexprvalue="true" description="是否禁止" %>

<div class="span3">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
        <tr>
            <td class="titleCss100">
                <c:choose>
                    <c:when test="${required eq 'true'}">
                        <span style="color: red">*</span>${name}
                    </c:when>
                    <c:otherwise>
                        ${name}
                    </c:otherwise>
                </c:choose>
            </td>
            <td class="tdCss">
                <input type="text" name="${property}" ${readOnly} value="${value}" ${disabled}/>
            </td>
        </tr>
        </tbody>
    </table>
</div>